home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / swingall.jar / javax / swing / text / SimpleAttributeSet$EmptyAttributeSet.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-07-15  |  1.3 KB  |  52 lines

  1. package javax.swing.text;
  2.  
  3. import java.io.Serializable;
  4. import java.util.Enumeration;
  5. import javax.swing.tree.DefaultMutableTreeNode;
  6.  
  7. class SimpleAttributeSet$EmptyAttributeSet implements AttributeSet, Serializable {
  8.    public boolean containsAttribute(Object var1, Object var2) {
  9.       return false;
  10.    }
  11.  
  12.    public boolean containsAttributes(AttributeSet var1) {
  13.       return var1.getAttributeCount() == 0;
  14.    }
  15.  
  16.    public AttributeSet copyAttributes() {
  17.       return this;
  18.    }
  19.  
  20.    public boolean equals(Object var1) {
  21.       if (this == var1) {
  22.          return true;
  23.       } else {
  24.          return var1 instanceof AttributeSet && ((AttributeSet)var1).getAttributeCount() == 0;
  25.       }
  26.    }
  27.  
  28.    public Object getAttribute(Object var1) {
  29.       return null;
  30.    }
  31.  
  32.    public int getAttributeCount() {
  33.       return 0;
  34.    }
  35.  
  36.    public Enumeration getAttributeNames() {
  37.       return DefaultMutableTreeNode.EMPTY_ENUMERATION;
  38.    }
  39.  
  40.    public AttributeSet getResolveParent() {
  41.       return null;
  42.    }
  43.  
  44.    public boolean isDefined(Object var1) {
  45.       return false;
  46.    }
  47.  
  48.    public boolean isEqual(AttributeSet var1) {
  49.       return var1.getAttributeCount() == 0;
  50.    }
  51. }
  52.